<?php
	class Door
	{
		public static function inPost( $postData )
		{
			return $postData;
		}
		
		public static function outJson( $xmlString )
		{
			$content = str_replace(array("\n", "\r", "\t"), '', $xmlString);

			$content = trim(str_replace('"', "'", $content));
	
			$simpleXml = simplexml_load_string($content);
		
			return json_encode( $simpleXml );
		}
	}
?>